import { postHttp, getHttp } from '../utils/http'
import { GETHttp, POSTHttp } from '../utils/https'
//登录接口
export const Login = async (params) => {
  return await postHttp('/api/login', params)
}
//注册接口
export const Register = async (params) => {
  return await postHttp('/api/register', params)
}
//获取验证码
export const getCode = async (params) => {
  return await getHttp('/api/get_code', params)
}
// 网络登录接口
export const HeadLogin = async (params) => {
  return await POSTHttp('/api/auth/login', params)
}
// 网络注册接口
export const HeadRegister = async (params) => {
  return await postHttp('/api/user/register', params)
}
